<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>hello</title>
</head>
<body>
  <h1>
    <span th:text="${msg.toUpperCase().toLowerCase()}"></span>
  </h1>

  <h1>
    <span th:text="${user.sayHello()}"></span>
  </h1>

  <h2>
    <ul>
      <li th:each="u : ${users}">
        <span th:text="${u.name}"></span>: <span th:text="${u.age}"></span> :
        <span th:if="${u.name.length()} > 8">太长了</span>
        <span th:if="${u.name.length()} <= 8">太短了</span>
      </li>
    </ul>
  </h2>
</body>
</html>